<template>
	<view class="labelHeight" :class="isTable?'tabCurr':''" v-if="modelshow">
		<view class="labelCon">
			<image class="label" src="../static/icon/logoLoading.png"></image>
			<image src="../static/logo.png" class="logo"></image>
			<view class="loadtext">{{Ttext}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			Ttext: {
				type: String,
				default: '努力加载中…'
			},
			modelshow:{
				type: Boolean,
				default: false
			},
			isTable:{
				type: Boolean,
				default: false
			}
		},
		data() {
			return {
				typeSrc: {
					src:''
				},
			}
		},
	}
</script>

<style lang="scss" scoped>
.labelHeight{
	height: 100%;
	&.tabCurr{
		height: calc(100% - 118upx);
	}
	width: 100%;
	background: #FFFFFF;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
}
.labelCon{
	width: 100%;
	text-align: center;
	position: relative;
	.label{
		width: 128upx;
		margin: 0 auto;
		height: 128upx;
		margin-top:65upx;
		animation: donut-spin 1.2s linear infinite;
	}
	.loadtext{
		font-size: 30upx;
		font-weight: 400;
		color: #000000;
		padding-top: 30upx;
		letter-spacing: 2upx;
	}
	.logo{
		width: 96upx;
		height: 96upx;
		position: absolute;
		left:0; right:0; top:0; bottom:0;
		margin:auto;
	}
}
@Keyframes donut-spin {
   0% {
     transform: rotate(0deg);
   }
   100% {
     transform: rotate(360deg);
   }
}
</style>
